package spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;



@Component(value ="player")
public class player {
    @Value(value = "james")
    private String name;
    public void fun(){
        System.out.println("我是超人"+name);
    }
}
